home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Software Dispatch
/
Apple Software Dispatch.iso
/
Software Dispatch Files
/
Resolve
/
Sample Application
/
Sample Application.rsrc
/
WDEF_11_Main.txt
< prev
Wrap
Text File
|
1993-07-15
|
5KB
|
93 lines
start:
00000000 4E56 0000 link A6, 0
00000004 48E7 0718 movem.l -[A7], D5,D6,D7,A3,A4
00000008 3C2E 000C move.w D6, [A6 + 0xC]
0000000C 286E 000E movea.l A4, [A6 + 0xE]
00000010 7E00 moveq.l D7, 0x00
00000012 0C46 0001 cmpi.w D6, 0x1
00000016 6628 bne +0x2A /* 00000040 */
00000018 558F subq.l A7, 2
0000001A 2F2E 0008 move.l -[A7], [A6 + 0x8]
0000001E 2F2C 0076 move.l -[A7], [A4 + 0x76]
00000022 A8E8 syscall PtInRgn
00000024 4A1F tst.b [A7]+
00000026 6704 beq +0x6 /* 0000002C */
00000028 7E01 moveq.l D7, 0x01
0000002A 6058 bra +0x5A /* 00000084 */
label0000002C:
0000002C 558F subq.l A7, 2
0000002E 2F2E 0008 move.l -[A7], [A6 + 0x8]
00000032 2F2C 0072 move.l -[A7], [A4 + 0x72]
00000036 A8E8 syscall PtInRgn
00000038 4A1F tst.b [A7]+
0000003A 6748 beq +0x4A /* 00000084 */
0000003C 7E02 moveq.l D7, 0x02
0000003E 6044 bra +0x46 /* 00000084 */
label00000040:
00000040 598F subq.l A7, 4
00000042 2F0C move.l -[A7], A4
00000044 A917 syscall GetWRefCon
00000046 265F movea.l A3, [A7]+
00000048 200B move.l D0, A3
0000004A 6738 beq +0x3A /* 00000084 */
0000004C 2F0B move.l -[A7], A3
0000004E A9A2 syscall LoadResource
00000050 558F subq.l A7, 2
00000052 A9AF syscall ResError
00000054 4A5F tst.w [A7]+
00000056 662C bne +0x2E /* 00000084 */
00000058 558F subq.l A7, 2
0000005A 2F0B move.l -[A7], A3
0000005C 4EBA 005C jsr [PC + 0x5C /* 000000BA */]
00000060 1A1F move.b D5, [A7]+
00000062 2F0B move.l -[A7], A3
00000064 4EBA 004A jsr [PC + 0x4A /* 000000B0 */]
00000068 598F subq.l A7, 4
0000006A 3F2E 0012 move.w -[A7], [A6 + 0x12]
0000006E 2F0C move.l -[A7], A4
00000070 3F06 move.w -[A7], D6
00000072 2F2E 0008 move.l -[A7], [A6 + 0x8]
00000076 2053 movea.l A0, [A3]
00000078 4E90 jsr [A0]
0000007A 2E1F move.l D7, [A7]+
0000007C 2F0B move.l -[A7], A3
0000007E 1F05 move.b -[A7], D5
00000080 4EBA 0042 jsr [PC + 0x42 /* 000000C4 */]
label00000084:
00000084 2D47 0014 move.l [A6 + 0x14], D7
00000088 4CEE 18E0 FFEC movem.l D5,D6,D7,A3,A4, [A6 - 0x14]
0000008E 4E5E unlink A6
00000090 205F movea.l A0, [A7]+
00000092 DEFC 000C add.w A7, 0xC
00000096 4ED0 jmp [A0]
00000098 225F movea.l A1, [A7]+
0000009A 201F move.l D0, [A7]+
0000009C A04C syscall CompactMem
0000009E 2E80 move.l [A7], D0
000000A0 4E71 nop
000000A2 7000 moveq.l D0, 0x00
label000000A4:
000000A4 2F09 move.l -[A7], A1
label000000A6:
000000A6 31C0 0220 move.w [0x00000220 /* MemErr */], D0
000000AA 4E75 rts
000000AC 7000 moveq.l D0, 0x00
000000AE 60F6 bra -0x8 /* 000000A6 */
fn000000B0:
000000B0 225F movea.l A1, [A7]+
000000B2 205F movea.l A0, [A7]+
000000B4 A029 syscall HLock
000000B6 4EFA FFEC jmp [PC - 0x14 /* 000000A4 */]
fn000000BA:
000000BA 225F movea.l A1, [A7]+
000000BC 205F movea.l A0, [A7]+
000000BE A069 syscall HGetState
000000C0 1E80 move.b [A7], D0
000000C2 4ED1 jmp [A1]
fn000000C4:
000000C4 225F movea.l A1, [A7]+
000000C6 101F move.b D0, [A7]+
000000C8 205F movea.l A0, [A7]+
000000CA A06A syscall HSetState
000000CC 4ED1 jmp [A1]